package test.day01;

public class WhileDemo {
    public static void main(String[] args) {
        int a = 0;
        while (a < 10) {
            System.out.println("in");
            a++;
        }
        int b = 0;
        do {
            System.out.println("out");
            b++;
        } while (b < 10);//注意两次结果一样，过程不一样。
        int c = 1;
        while (c < 10) {
            System.out.println(c + "*9=" + c * 9);
            c++;
        }
    }
}
